package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户发货地址表
 * </p>
 *
 * @author Lbx
 * @since 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdDeliverAddress对象", description="商户发货地址表")
@TableName("jd_deliver_address")
public class JdDeliverAddress extends Model<JdDeliverAddress> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "(地址ID)主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发货人姓名")
    @TableField("deliver_name")
    private String deliverName;

    @ApiModelProperty(value = "发货人电话")
    @TableField("deliver_phone")
    private String deliverPhone;

    @ApiModelProperty(value = "地址类型")
    @TableField("address_type")
    private String addressType;

    @ApiModelProperty(value = "省编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "区编码")
    @TableField("country_code")
    private String countryCode;

    @ApiModelProperty(value = "详细地址")
    @TableField("address_detail")
    private String addressDetail;

    @ApiModelProperty(value = "完整的详细地址（带省、市、区）")
    @TableField("full_address_detail")
    private String fullAddressDetail;

    @ApiModelProperty(value = "地址状态（0：正常；1：禁用；）")
    @TableField("address_Status")
    private Integer addressStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_user")
    private String updateUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
